/*
day440 
2020.11.10 
*/
#include<iostream>
#include<cstring>
#include<vector>
using namespace std; 

class Solution {
public:
    string restoreString(string s, vector<int>& indices) {
		string res(s);
		for(int i=0;i<s.size();++i)
		{
			res[indices[i]]=s[i];
		 } 
		return res;
    }
};

int main()
{
	return 0;
}
